package com.fbli.mapper;

import com.fbli.pojo.Knowledge;
import org.apache.ibatis.annotations.Param;
import sun.nio.cs.KOI8_R;

import java.util.List;

public interface KnowledgeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Knowledge record);

    Knowledge selectByPrimaryKey(Integer id);

    List<Knowledge> selectAll();

    int updateByPrimaryKey(Knowledge record);

    /**
     * 多条件查询并分页
     * @param knowledge
     * @return
     */
    List<Knowledge> selectCondition(@Param("knowledge") Knowledge knowledge);
}